module RCA_32bit(A,B,Cin,S,Cout);
	input [31:0] A, B;
	input Cin;
	output [31:0] S;
	output Cout;

	wire Carry[4:0];

	assign Carry[0]=Cin;
	assign Cout=Carry[4];

	genvar i;

	generate
		for(i=0;i<4;i=i+1)
		begin: rcas
			RCA rca0(.A(A[i*8+7:i*8]), .B(B[i*8+7:i*8]), .C0(Carry[i]), .S(S[i*8+7:i*8]), .C8(Carry[i+1]));
		end
	endgenerate
	
endmodule